package com.ruoyi.gp.service;

import com.ruoyi.gp.domain.ShoppingPlatform;
import com.ruoyi.gp.domain.vo.ShoppingPlatformVo;
import com.ruoyi.gp.domain.bo.ShoppingPlatformBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 购物平台Service接口
 *
 * @author ruoyi
 * @date 2024-03-07
 */
public interface IShoppingPlatformService {

    /**
     * 查询购物平台
     */
    ShoppingPlatformVo queryById(Long id);

    /**
     * 查询购物平台列表
     */
    TableDataInfo<ShoppingPlatformVo> queryPageList(ShoppingPlatformBo bo, PageQuery pageQuery);

    /**
     * 查询购物平台列表
     */
    List<ShoppingPlatformVo> queryList(ShoppingPlatformBo bo);

    /**
     * 新增购物平台
     */
    Boolean insertByBo(ShoppingPlatformBo bo);

    /**
     * 修改购物平台
     */
    Boolean updateByBo(ShoppingPlatformBo bo);

    /**
     * 校验并批量删除购物平台信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

}
